-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse query precedence ordering #9458
base: master
Are you sure you want to change the base?
Conversation
dump question: couldn't we simply write a script that reads all queries and reverses all lines? It would be ugly but at least trivially correct. |
It would probably be a little tricky to write so that it handles comments correctly but yeah that would be the most efficient way |
There's also files that were copied and weren't properly reversed in the first place |
…cedence order This commit adapts PureScript highlight queries to match upcoming changes in Helix which will make queries matching order go from more to general to more specific, the opposite of previous order.
Update julia parser to latest version, along with: - updating the queries, - pulling changes from `nvim-treesitter`’s queries (as the maintainters of the parser update the queries there), - reversing the queries’ order to be compatible with upstream.
17bb6b4
to
951b454
Compare
I added a progress checklist to the PR description. I'm going through these one by one and comparing them to the nvim-treesitter ordering: in many cases there's nothing to do or the file wasn't correctly reordered in the first place. |
Queries ported from nvim-treesitter
This is a work in progress: we need to check the other tree-sitter queries (injections, indents, textobjects) and ensure that they also use the latest match. We also need to re-order and check all of the existing highlight queries. For now I've started small and only ported over Erlang's highlights.
Closes #9436
Progress
TODO: also verify locals, indents